import fly from '../utils/request'
// 登录
export const login =data=>{
  return fly.post('/authorizations',data)
}
// 验证码
export const sendCodes =data=>{
  return fly.get('/sms/codes/'+ '13800000000',)
}
// 标签名接口
export const getTabName =data=>{
  return fly.get('user/channels/')
}

// home页数据列表
export const getMessageList = (id,time) => {
  return fly.get(`/articles?channel_id=${id}&with_top=1&timestamp=${time}`)
}